package com.mkb.dao.impl;

import com.mkb.entity.GraphDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mkb.dao.GraphDAO;
import com.mkb.entity.GraphDO;
import com.mkb.mapper.GraphMapper;

import java.util.List;
import java.util.Map;

@Repository
public class GraphDAOImpl implements GraphDAO{
	
	@Autowired
	private GraphMapper graphMapper;
	
	@Override
	public int deleteById(Long id) {
		return graphMapper.deleteById(id);
	}

	@Override
	public int insert(GraphDO record) {
		return graphMapper.insert(record);
	}

	@Override
	public GraphDO getById(Long id) {
		return graphMapper.getById(id);
	}

	@Override
	public int update(GraphDO record) {
		return graphMapper.update(record);
	}

	@Override
	public int count(Map<String, Object> map) {
		return 0;
	}

	@Override
	public List<GraphDO> queryList(Map<String, Object> params) {
		return graphMapper.queryList(params);
	}
	
	@Override
        public int insertBatch(List<GraphDO> dos) {
           return graphMapper.insertBatch(dos);
        }

	@Override
	public List<GraphDTO> queryFullList(Map<String, Object> params) {
		return graphMapper.queryFullList(params);
	}
}
